import { createApp } from 'vue'
import App from './App.vue'
import './registerServiceWorker'
import router from './router'
import store from './store'
import * as echarts from 'echarts';
import * as ElementPlusIconsVue from '@element-plus/icons-vue'

import ElementPlus from 'element-plus'
import 'element-plus/dist/index.css'
import _BaiduMap from 'vue-baidu-map'


const app = createApp(App)
app.use(echarts);
app.use(store);
app.use(ElementPlus);
// app.use(_BaiduMap, {
//     // ak 是在百度地图开发者平台申请的密钥 详见 http://lbsyun.baidu.com/apiconsole/key */
//     ak: 'r0n7xCGag6DdhwESlbMOGBZTKxM75IsV'
// }) 
app.use(ElementPlusIconsVue)
app.use(router).mount('#app')


app.config.globalProperties.$echarts = echarts

for (const [key, component] of Object.entries(ElementPlusIconsVue)) {
    app.component(key, component)
} 